@import './reset.scss';

body {
    background-color: #f5f5f5;
}

.container {
    width: 1226px;
    margin: 0 auto;
    // background-color: antiquewhite;

    // 标题容器
    .title-box {
        width: 100%;
        color: #333;
        display: flex;
        justify-content: space-between;
        align-items: center;

        // 大标题
        h2 {
            font-weight: 200;
            font-size: 22px;
            line-height: 58px;
        }

        // 切换标签
        ul {
            display: flex;
            justify-content: space-between;
            align-items: center;

            li {
                margin-left: 30px;
                color: #000;
                padding: 2px;
                border-bottom: 2px solid transparent;
                cursor: pointer;

                &:first-child {
                    color: #ff6700;
                    border-bottom-color:#ff6700;
                }

                &:hover{
                    color: #ff6700;
                    border-bottom-color:#ff6700;
                }
            }
        }
    }

    // 主体部分
    main {
        // background-color: antiquewhite;
        display: flex;

        // 公共动画样式
        %shadow{
            transition: 0.5s;
            box-shadow: 0 5px 20px -5px #ccc;
            transform: translateY(-3px);
        }

        .imgBox:hover {
            @extend %shadow;
        }

        li:hover {
            @extend %shadow;
        }

        li{
            transition: 0.2s;
        }

        // 主体--左侧图片容器
        .imgBox {
            transition: 0.2s;
            a {
                display: block;
                width: 100%;
                height: 100%;
            }

            img {
                height: 614px;
                display: block;
            }
        }

        // 主体--右侧大容器
        .rightBox {
            // 右侧容器--行
            .rowBox {
                display: flex;
                // 主体容器内a标签全局样式
                a {
                    display: block;
                    height: 100%;
                    -webkit-box-sizing: border-box;
                    box-sizing: border-box;
                    padding: 20px 0;
                }

                // 内容盒子
                li {
                    width: 234px;
                    height: 300px;
                    margin-left: 14px;
                    background-color: #fff;
                    text-align: center;
                }

                .imgBox-s {
                    width: 160px;
                    height: 160px;
                    margin: 0 auto;

                    img {
                        width: 100%;
                    }
                }

                h3 {
                    font-size: 14px;
                    font-weight: 400;
                    color: #333;
                    margin: 0 10px 2px;
                }

                p:first-of-type {
                    margin: 0 10px 10px;
                    height: 18px;
                    font-size: 12px;
                    color: #b0b0b0;
                    text-align: center;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;
                }

                p:last-of-type {
                    span {
                        color: #ff6700;
                    }

                    del {
                        color: #aaa;
                        text-decoration: line-through solid 1px;
                    }
                }

                // 右侧首行容器下外边距
                &:first-child {
                    margin-bottom: 14px;
                }

                // 右侧最后一行容器（ul）
                &:last-child {
                    li:last-child {
                        background-color: transparent;

                        // 设置最后一个li无动画
                        &:hover{
                            box-shadow: none;
                            transform: none;
                        }

                        ul li {
                            width: 234px;
                            height: 143px;
                            margin-left: 0;
                            background-color: #fff;

                            &:first-child {
                                margin-bottom: 14px;
                                position: relative;

                                .figure-img {
                                    position: absolute;
                                    right: 20px;
                                    top: 32px;
                                    width: 80px;
                                    height: 80px;

                                    img {
                                        height: 100%;
                                    }
                                }

                                h3 {
                                    margin: 10px 110px 5px 30px;
                                    font-size: 14px;
                                    font-weight: 400;
                                    text-align: left;
                                }

                                p {
                                    text-align: left;
                                    margin: 0 110px 0 30px;
                                    font-size: 12px;
                                    color: #ff6700;
                                }
                            }

                            &:last-child {
                                position: relative;
                                height: 93px;
                                padding-top: 50px;

                                &:hover{
                                    @extend %shadow;
                                }

                                a {
                                    padding: 0;
                                }

                                .figure-more {
                                    position: absolute;
                                    right: 35px;
                                    top: 48px;
                                    width: 48px;
                                    height: 48px;
                                    color: #ff6700;
                                    font-size: 48px;
                                    line-height: 48px;

                                    i {
                                        font-size: 48px;
                                        line-height: 48px;
                                    }
                                }

                                .more {
                                    display: block;
                                    margin-left: 30px;
                                    font-size: 18px;
                                    color: #333;
                                    text-align: left;

                                    small {
                                        margin-top: 3px;
                                        display: block;
                                        font-size: 12px;
                                        color: #757575;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}